﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;
using System.Data.SqlClient;

namespace BLL
{
     public  class VillageBLL
    {
         /// <summary>
         /// 小区状况勘察
         /// </summary>
         /// <param name="parame"></param>
         /// <returns></returns>
         public bool AddVillage(params SqlParameter[] parame)
         {
             Village vill = new Village();
             return new VillageDAL().Add(vill, parame);
         }
         public Village GetVillageById(SqlParameter[] param) 
         {
             return new VillageDAL().GetList<Village>(param).FirstOrDefault();
         }
    }
}
